Skip to content

♻️ Merge discstore folder into jukebox#249

Merged
msgerbush merged 8 commits into
mainfrom
refactor/phase-1-discstore-migration
May 7, 2026
Merged

♻️ Merge discstore folder into jukebox#249
msgerbush merged 8 commits into
mainfrom
refactor/phase-1-discstore-migration

Conversation

@Gudsfile
Copy link
Copy Markdown
Owner

@Gudsfile Gudsfile commented May 4, 2026

Summary

  • Move all discstore/ code into the jukebox/ package: entities, use cases, inbound adapters, CLI commands, DI container, and tests
  • Delete the discstore package and remove it from build config
  • No logic changes: pure file relocation and import path updates

Test plan

  • All tests pass (uv run pytest)
  • No discstore imports remain in the codebase

Part of #179

@Gudsfile Gudsfile self-assigned this May 4, 2026
@Gudsfile Gudsfile marked this pull request as ready for review May 4, 2026 20:51
Copy link
Copy Markdown
Collaborator

@msgerbush msgerbush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I called out a few user-facing places where we are still using 'discstore' (there are a few others in the interactive CLI). I don't think we need to change them in this PR, though.

from jukebox.domain.use_cases.library.resolve_tag_id import ResolveTagId
from jukebox.domain.use_cases.library.search_discs import SearchDiscs

LOGGER = logging.getLogger("discstore")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (non-blocking): we may want to change the logger name at some point

from jukebox.domain.use_cases.library.list_discs import ListDiscs
from jukebox.domain.use_cases.library.remove_disc import RemoveDisc

LOGGER = logging.getLogger("discstore")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change name here, too.

def run(self) -> None:
print(self.help_message)
while True:
command = input("discstore> ")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: name change

@msgerbush msgerbush merged commit bd536c3 into main May 7, 2026
6 checks passed
@msgerbush msgerbush deleted the refactor/phase-1-discstore-migration branch May 7, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants